Operation void
setDaemon (boolean on), in Class Thread
Documentation
* Marks this thread as either a daemon thread or a user thread. The
* Java Virtual Machine exits when the only threads running are all
* daemon threads.
* <p>
* This method must be called before the thread is started.
*
* @param on if <code>true</code>, marks this thread as a
* daemon thread.
* @exception IllegalThreadStateException if this thread is active.
* @see java.lang.Thread#isDaemon()
* @since JDK1.0
Concurrency | Sequential | Export Control | PublicAccess |
Property Settings
Java
Final | True | Abstract | False |
Static | False | Native | False |
Synchronized | False | | |